<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/html5shiv.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="__PUBLIC__/admin/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <script type="text/javascript" src="__PUBLIC__/admin/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin/js/action.js"></script>
    <title>{$title}</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> {$modules} <span class="c-gray en">&gt;</span> {$title}
</nav>
<div class="page-container" id="groupType" data-type="{$groupType}">
    <div>
        <div style="float:left;"><a href="{:U('add')}?type={$groupType}" class="btn btn-success">发布新招募</a></div>
       <div style="float: right"> <input type="text" class="input-text" style="width:250px" placeholder="标题关键词搜索" id="keyword" value="{$keyword}">
           <button type="button" class="btn btn-success" onclick="product_option(0);"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
       </div>
        <div style="clear: both"></div>
    </div>
    <br>
    <table class="table table-border table-bordered table-bg">
        <thead>
        <tr class="text-c">
            <th width="40">排序</th>
            <th width="80">标题</th>
            <th width="100">封面图片</th>
            <th width="100">报名情况</th>
            <th width="80">操作</th>
        </tr>
        </thead>
        <tbody id="news_option">
        <!-- 遍历 -->
        <volist name="list" id="v">
            <tr class="text-c">
                <td>{$v.sort}</td>
                <td>{$v.title}</td>
                <td style="padding:3px 0;"><img src="__DATA__/{$v.cover}" height="80px"/></td>
                <td><a href="{:U('apply')}?id={$v.id}">查看</a></td>
                <td>
                    <a href="{:U('add')}?id={$v.id}">修改</a> |
                    <a onclick="del_id_urls({$v.id})">删除</a>
                </td>
            </tr>
        </volist>
        <?php if(empty($list)){ ?>
        <tr><td colspan="7" style="text-align: center">暂无数据</td></tr>
        <?php }else{ ?>
        <tr>
            <td colspan="10" class="td_2">
                {$pageObj}
            </td>
        </tr>
        <?php } ?>
        </tbody>
    </table>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__PUBLIC__/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/laypage/1.2/laypage.js"></script>


<script>
    function product_option(page){
        var keyword = $("#keyword").val();
        if(keyword != ''){
            location.href="{:U('index')}?type={$groupType}&page="+page+"&keyword=" + keyword;
        }else{
            location.href="{:U('index')}?type={$groupType}&page="+page;
        }
    }

    function del_id_urls (pro_id) {
        if (confirm('您确定要删除吗？')) {
            location.href="{:U('del')}?did="+pro_id;
        };
    }

</script>
</body>
</html>
